export const formItems = [
  {
    filed: 'deviceName',
    type: 'input',
    label: '设备名称',
    placeholder: '请输入设备名称'
  },
  {
    filed: 'status',
    type: 'select',
    label: '设备状态',
    placeholder: '全部',
    options: [
      { value: '0', label: '禁用' },
      { value: '1', label: '启用' }
    ]
  }
]
export const deviceFormConfig = {
  formItems,
  online: true
}
export const deviceContentConfig = {
  propList: [
    { prop: 'deviceId', label: '设备ID', minWidth: '150' },
    { prop: 'name', label: '设备名称', minWidth: '160' },
    // { prop: 'ip', label: '设备IP地址', minWidth: '150' },
    { prop: 'coinNum', label: '币剩余数量', minWidth: '120' },
    { prop: 'createTime', label: '创建时间', minWidth: '160' },
    { prop: 'connectStatus', label: '连接状态', minWidth: '100', slotName: 'linkStatus', fixed: 'right' },
    { prop: 'status', label: '设备状态', minWidth: '80', slotName: 'status', fixed: 'right' },
    { prop: 'handle', label: '操作', minWidth: '180', slotName: 'handler', fixed: 'right' }
  ]
}
export const deviceRules = {
  deviceId: [{ required: true, message: '请输入设备id', trigger: 'blur' }],
  name: [{ required: true, message: '请输入设备名称', trigger: 'blur' }],
  ip: [{ required: true, message: '请输入设备IP地址', trigger: 'blur' }]
}
